<%@page import="cn.ysnk.clz.entity.dataUser.SecurityUser"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="org.springframework.security.core.userdetails.User"%>
<%@page import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/admin/common/header.jsp"%>
<title>指亡人后台管理系统</title>
</head>
<body>
	<div class="easyui-layout" style="width: 100%; height: 100%;">
		<div region="north" style="width: 100%; border: none;height:auto;">
		<div class="navbar navbar-duomi navbar-static-top" role="navigation">
	        <div class="container-fluid">
	            <div class="navbar-header" style="width: 100%;margin-top: 13px;font-size: 19px;">
	                <%
	                SecurityUser u = (SecurityUser)SecurityContextHolder.getContext().getAuthentication().getPrincipal();
	                String date = new SimpleDateFormat("yyyy-MM-dd E").format(new Date());
	                %>
	                <a style="text-decoration: none;color: #FFF;">欢迎您！<%=u.getNickName() %>
	                </a>
	                <a style="text-decoration: none;color: #FFF;">今天是<%=date %></a>
	                <a href="<%=request.getContextPath() %>/logout" style="float:right; max-width: 60%;font-size:14px;text-decoration: none;color: #FF3366;;">退出账户</a>
	                <%-- <a style="float:right; max-width: 60%;font-size:14px;text-decoration: none;color: #FF3366;;"><%=OneWordsUtil.getOneWords() %></a> --%>
	            </div>
	        </div>
	    </div>
		</div>
		<div region="west" href="<%=request.getContextPath() %>/adminMenu" style="width: 150px;border: none;">
		</div>
		<div id="content" region="center" style="padding: 5px;border: none;">
			<div id="tabs" class="easyui-tabs" style="width:100%;height:auto">
			</div>
		</div>
	</div>
	
	<!-- 模态框  -->
	<!-- Modal -->
	<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
	  <div class="modal-dialog" role="document">
	    <div class="modal-content">
	    </div>
	  </div>
	</div>
	<!-- Modal -->
	<div class="modal fade" id="myLargerModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
	  <div class="modal-dialog modal-lg" role="document">
	    <div class="modal-content">
	    </div>
	  </div>
	</div>
	
	<!-- easyui的右键菜单 -->
	<div id="mm" class="easyui-menu" style="width:120px;">  
	    <div onclick="append()" data-options="iconCls:'icon-add'">增加</div>  
	    <div onclick="edit()" data-options="iconCls:'icon-edit'">编辑</div>
	    <div onclick="remove()" data-options="iconCls:'icon-remove'">删除</div>  
	    <div class="menu-sep"></div>  
	    <div onclick="expand()">展开</div>  
	    <div onclick="collapse()">收起</div>  
	</div>
	<script type="text/javascript">
	$(function(){
		$.ajaxSetup({
		   	contentType:"application/x-www-form-urlencoded;charset=utf-8",
		   	complete:function(XMLHttpRequest,textStatus){
		   		if("success"!=textStatus)
		   			AdminCommon.refreshTabByContent(XMLHttpRequest.responseText);
	   		},
		   	statusCode: {
	   		 	403: function() {
	   			 	AdminCommon.popSuccess("抱歉你没有访问该页面的权限！403");
		     	},
		     	404: function() {
		     		AdminCommon.popSuccess("数据获取/输入失败，没有此服务。404");
		     	},
		     	500: function() {
		     		AdminCommon.popSuccess("服务器有误。500");
		     	}
		   	}
		});
		$("#myModal").on("hidden.bs.modal", function() {
		    $(this).removeData("bs.modal");
		});

		$("#myLargerModal").on("hidden.bs.modal", function() {
		    $(this).removeData("bs.modal");
		});
	});
	</script>
</body>
</html>